package xyz.kongbai121.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 树洞意见实体类
 * @author 空白
 */
@Getter
@Setter
@ToString
public class Opinion {
    @TableId(type = IdType.AUTO)
    private Long id;                //评论id
    private String content;         //评论内容
    private String openid;          //用户唯一标识
    private Long treeId;            //树洞id
    private Long opinionId;         //父评论id
    private String treeBody;        //树洞内容
    private String toOpenid;        //树洞内容
    private Date deliverTime;       //发送时间
    private String authorOpenid;    //树洞发布者id
    private Integer isRead;         //是否已读

    @TableField(exist = false)
    private List<Opinion> opinions;
}
